'''
Created on 2010/03/23

@author: enu
'''
from google.appengine.ext import db
from google.appengine.api import users

class Consumer(db.Model):
    oauth_consumer_key = db.StringProperty(required=True)
    oauth_consumer_secret = db.StringProperty(required=True)

class Token(db.Model):
    oauth_token = db.StringProperty(required=True)
    oauth_token_secret = db.StringProperty(required=True)
    consumer = db.ReferenceProperty(users.User)

